package com.run.motion.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;


/**
 * 【健身房对象 my_gym
 * 
 * @author lyq
 * @date 2022-03-26
 */
public class Gym
{


    /** 健身房id */
    private Long id;

    /** 健身房名称 */
    private String gymName;

    /** 健身房地址 */
    private String address;

    /** 营业时间 */
    private String businessHours;

    /** 评分 */
    private Long star;

    /** 图片 */
    private String img;

    /** 创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    /** 健身器材id */
    private String eqIds;

    /** 价格 */
    private String price;

    /** 健身器材 */
    private List<GymEquipment> gymEquipments;

    /** 轮播图片 */
    private List<GymImages> gymImages;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGymName(String gymName) 
    {
        this.gymName = gymName;
    }

    public String getGymName() 
    {
        return gymName;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setBusinessHours(String businessHours) 
    {
        this.businessHours = businessHours;
    }

    public String getBusinessHours() 
    {
        return businessHours;
    }
    public void setStar(Long star) 
    {
        this.star = star;
    }

    public Long getStar() 
    {
        return star;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getEqIds() {
        return eqIds;
    }

    public void setEqIds(String eqIds) {
        this.eqIds = eqIds;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public List<GymEquipment> getGymEquipments() {
        return gymEquipments;
    }

    public void setGymEquipments(List<GymEquipment> gymEquipments) {
        this.gymEquipments = gymEquipments;
    }

    public List<GymImages> getGymImages() {
        return gymImages;
    }

    public void setGymImages(List<GymImages> gymImages) {
        this.gymImages = gymImages;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gymName", getGymName())
            .append("address", getAddress())
            .append("businessHours", getBusinessHours())
            .append("createTime", getCreateTime())
            .append("star", getStar())
            .append("img", getImg())
            .append("eqIds",getEqIds())
            .append("price",getPrice())
            .toString();
    }
}
